package com.ruoyi.web.utils;

import com.ruoyi.common.utils.http.HttpUtils;

public class WechatUtils {


    private static String wechatAppId = "wxec1532d5d06ea5f8";

    private static String wechatAppSecret = "fdcf298b8f21e09e055ce1eb22253448";




    public static String getAccessToken(){
        String param = "grant_type=client_credential&appid="+wechatAppId+"&secret="+wechatAppSecret;
        String sendGet = HttpUtils.sendGet("https://api.weixin.qq.com/cgi-bin/token", param);
        return sendGet;
    }




}
